﻿<h3>Child</h3>

<button @onclick="MyClick">改变父组件的值</button>
@code {


    /// <summary>
    /// 泛型，
    /// </summary>
    [Parameter]
    public EventCallback OnSomethingChanged { get; set; }

    protected async Task MyClick( MouseEventArgs eventArgs)
    {
        Console.WriteLine("MyClick");
        if (OnSomethingChanged.HasDelegate)
            await OnSomethingChanged.InvokeAsync(eventArgs);

    }

}
